home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
09
/
3
/
DISK0932.ZIP
/
SOURCE.EXE
/
arc
/
SETRESET.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1991-03-31
|
1KB
|
30 lines
PROGRAM SETRESET; { sets caps and num lock on + printer to emphasized }
{ pitch then resets all of them to off + emphasized }
{ off, and allows test of keyboard and printer. }
{ I close Labcoat with an attempt to reset your }
{ printer and keyboard. If you have troubles with }
{ this, look for these orders in Labcoat, Evaluate, }
{ etc. source, comment them out and recompile. This }
{ program is just to show them all as examples. }
VAR Y,Z : STRING[45];
BEGIN
MEM[$40:$17] := MEM[$40:$17] OR $40; { Caps Lock On }
MEM[$40:$17] := MEM[$40:$17] OR $20; { Num Lock On }
WRITE('INPUT A STRING (up to 45 char.): ');
READLN(Y);
WRITELN(LST, (CHR(27)), (CHR(69)),y); { Printer - Emphasized Pitch On }
MEM[$40:$17] := MEM[$40:$17] AND $40; { Caps Lock Off }
MEM[$40:$17] := MEM[$40:$17] AND $20; { Num Lock Off }
WRITE('Now Try It Again: ');
READLN(Z);
writeln(lst, (chr(27)), (chr(70)),z); { Printer - Emphasized Pitch Off }
END.